using UnityEngine;

public class PriceTag : MonoBehaviour
{
	public UILabel priceLabel;

	public GameObject coinsSprite;

	public GameObject ggdollarsSprite;

	public void Init(int price, CurrencyType type)
	{
		UITools.ChangeText(priceLabel, price.ToString());
		SetCurrencyType(type);
	}

	private void SetCurrencyType(CurrencyType type)
	{
		coinsSprite.SetActive(type == CurrencyType.coins);
		ggdollarsSprite.SetActive(type == CurrencyType.ggdollars);
	}
}
